package com.hfzy.ihk.facade.callhistoryold.service;

import com.hfzy.ihk.facade.callhistoryold.request.CallHistoryZy4ListRequest;
import com.hfzy.ihk.facade.callhistoryold.request.ClickUserRequest;

import java.util.List;
import java.util.Map;

/**
 * @Description：云呼记录RMI
 * @ClassName：CallHistoryRmiService
 * @author：lht
 */
public interface CallHistoryRmiService {

    /**
     * 保存云呼记录
     * @param map
     * @return ["sessionId":"xxxxxxxxxx"]
     */
    String saveCallHistoryReturnSessionId(Map map);

    /**
     * 获取云呼记录
     * @param map
     * @return
     */
    String getCallhistory(Map map);

    /**
     * 根据SESSION_ID更新数据
     * @param map => sessionId,customerFollowFeedBack,isPushApp,failedReason,isHideRecord
     */
    boolean updateCloudCallBySessionId(Map map);

    boolean updateCloudCalls(List<Map> mapList);

    /**
     * 云呼报表查询
     * @param request
     * @param zyUserId
     * @return String
     */
    String queryCallHistory4list(CallHistoryZy4ListRequest request, Integer zyUserId);


    String getCallRecords(Map paramMap);

    void addCallhistoryPlayRecord(String json);

    void updateClickUser(ClickUserRequest clickUserRequest);

    String geCallHistoryCrms(String customerIds,String sessionIds,Integer clickUserId);
}
